﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class Org_frmO_TraineeLifeReportTask : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ((Org_MasterPage)this.Master).changeTitle("実習生活状況報告実施（対象企業決定）");
        ((Org_MasterPage)this.Master).HideLiArea("frmO_TraineeLifeReportTasks");
        GridView1.DataSource = myTable();
        GridView1.DataBind();
        GridView2.DataSource = myTable1();
        GridView2.DataBind();
    }
    public DataTable myTable()
    {
        DataTable dt = new DataTable();
        DataColumn col;
        DataRow row;
        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "1";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "2";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "3";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "4";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "5";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "6";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "7";
        dt.Columns.Add(col);

        row = dt.NewRow();
        row["1"] = "2011/01/04 ";
        row["7"] = "済 ";
        dt.Rows.Add(row);
        row = dt.NewRow();
        row["1"] = "2011/04/01 ";
        row["7"] = "済 ";
        dt.Rows.Add(row);
        row = dt.NewRow();
        row["1"] = "2011/07/01 ";
        row["7"] = "済 ";
        dt.Rows.Add(row);
        
        
        for (int i = 0; i <= 5; i++)
        {
            row = dt.NewRow();
            row["1"] = " ";
            row["2"] = " ";
            row["3"] = " ";
            row["4"] = " ";
            row["5"] = " ";
            row["6"] = " ";
            row["7"] = " ";
            dt.Rows.Add(row);
        }
        return dt;

    }
    public DataTable myTable1()
    {
        DataTable dt = new DataTable();
        DataColumn col;
        DataRow row;
        CheckBox chk1 = new CheckBox();
        col = new DataColumn();
        col.DataType = System.Type.GetType("System.Boolean");
        
        col.ColumnName = "0";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "1";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "2";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "3";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "4";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "5";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "6";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "7";
        dt.Columns.Add(col);
        
        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "8";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "9";
        dt.Columns.Add(col);

        col = new DataColumn();
        col.DataType = System.Type.GetType("System.String");
        col.ColumnName = "10";
        dt.Columns.Add(col);


       
        
        row = dt.NewRow();
        row["1"] = "AAA ";
        row["0"] = "true ";
        dt.Rows.Add(row);
        row = dt.NewRow();
        row["1"] = "BBB ";
        row["0"] = "true ";
        dt.Rows.Add(row);
        row = dt.NewRow();
        row["1"] = "CCC ";
        row["0"] = "true ";
        dt.Rows.Add(row);
        row = dt.NewRow();
        row["1"] = "DDD ";
        dt.Rows.Add(row);


        for (int i = 0; i <= 6; i++)
        {
            row = dt.NewRow();
            row["0"] = "false ";
            row["1"] = " ";
            row["2"] = " ";
            row["3"] = " ";
            row["4"] = " ";
            row["5"] = " ";
            row["6"] = " ";
            row["7"] = " ";
            row["8"] = " ";
            row["9"] = " ";
            row["10"] = " ";
            dt.Rows.Add(row);
        }
        return dt;

    }
}
